package com.threadmethod.interrupt;

import com.threadmethod.SubThread;

/**
 * @PackageName:com.threadmethod.interrupt
 * @ClassName:Test06
 * @Description:
 * @Author: zhangxiaoyu
 * @date 2020/11/19 17:38
 */
public class Test06 {
    public static void main(String[] args){
        SubThread06 t1 =new SubThread06();
        t1.start();
        for (int i=1;i<=100;i++){
            System.out.println("main:"+i);
        }
        //中断线程  --仅仅只是给线程标记中断，子线程并没有真正中断
        t1.interrupt();
    }
}
